//
// Created by v on 24-12-24.
//

#ifndef JKLIBS_CMAISERVICEIMPLRK3588_H
#define JKLIBS_CMAISERVICEIMPLRK3588_H

#include "CMAIServiceInterface.h"
#include "yolo11.h"

class CMAIServiceImplRk3588 : public CMAIServiceInterface
{
  public:
    CMAIServiceImplRk3588();
    virtual ~CMAIServiceImplRk3588();

    int init() override;
    int deinit() override;

    virtual int init_model(const char *model_path, char *label_file);
    virtual int deinit_model();

  virtual int recognize(const char *buf, size_t img_size, std::vector<CMAIRecogItem> &results);

  private:
    rknn_app_context_t rknn_app_ctx;
};

#endif // JKLIBS_CMAISERVICEIMPLRK3588_H
